package com.pickup.netty.util;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;


@Component
public class SocketMappingConfig {
		
	private static class SingletonSocketMappingConfig {
		static final SocketMappingConfig instance = new SocketMappingConfig();
	}
	
	public static SocketMappingConfig getInstance() {
		return SingletonSocketMappingConfig.instance;
	}

	private List<String> classPaths = new ArrayList<String>();

	public void init() throws ClassNotFoundException {
		List<Class<?>> clsList = ClassUtil.getClasses("com.pickup.netty.controller");
		for (Class<?> aClass : clsList) {
			System.out.println(aClass);
		}
		AnnotationUtil.validAnnotation(clsList);
	}

}
